package com.xxgc.demo.job;

import com.xxgc.demo.utils.SpeechSynthesisUtil;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

@Slf4j
public class SendEmailToGirlFriendJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //具体执行的任务
        SpeechSynthesisUtil ttsTool = new SpeechSynthesisUtil("0adfa098");
        ttsTool.textToVoice("叮，叮，叮，上课了，请同学们做好课前准备，认真听讲。今天也是元气慢慢的一天。现在我们来封装工具类。");

        log.info("给翠花女朋友发邮件");
        //给用户的邮箱发送验证码
        //MailUtil.send("2572973289@qq.com", "舔狗日记", "今天给她和她男朋友买了早餐，她居然给我说了谢谢。", false);
    }
}
